server {
    listen 80;
    server_name top.besteasylearn.com;

    lua_code_cache off;  

    location / {
        default_type 'text/plain';

        lua_code_cache off;  
        content_by_lua_file /usr/local/openresty/openrestyConfig/lua/community_top.lua;  

    }

    location @wx {
        default_type 'text/plain';
        rewrite ^(.*)$ /wx/$1 last;
    }

    location @sz {
        default_type 'text/plain';
        rewrite ^(.*)$ /sz/$1 last;
    }

    location @no_ct {
        default_type 'text/plain';
        content_by_lua_block {
            ngx.say('404')
        }  
    }

    location /sz/
    {
        internal;
        alias /usr/local/openresty/openrestyConfig/community/sz/;
    }

    location /wx/
    {
        internal;
        alias /usr/local/openresty/openrestyConfig/community/wx/;
    }


}  